package com.zr.d_c.model;

/**
 * 功能表实体
 * @author lsl
 */
public class Func {

	private int fid;
	private String fname;
	private String fpath;
	private int fparentid;//功能的父节点的id
	private String fstate;//功能的是否能够被展开
	public int getFid() {
		return fid;
	}
	public void setFid(int fid) {
		this.fid = fid;
	}
	public String getFname() {
		return fname;
	}
	public void setFname(String fname) {
		this.fname = fname;
	}
	public String getFpath() {
		return fpath;
	}
	public void setFpath(String fpath) {
		this.fpath = fpath;
	}
	public int getFparentid() {
		return fparentid;
	}
	public void setFparentid(int fparentid) {
		this.fparentid = fparentid;
	}
	public String getFstate() {
		return fstate;
	}
	public void setFstate(String fstate) {
		this.fstate = fstate;
	}
	public Func(String fname, String fpath, int fparentid, String fstate) {
		this.fname = fname;
		this.fpath = fpath;
		this.fparentid = fparentid;
		this.fstate = fstate;
	}
	public Func() {
		super();
		// TODO Auto-generated constructor stub
	}
	
	@Override
	public boolean equals(Object obj) {
		// TODO Auto-generated method stub
		Func f = (Func)obj;
		return this.fname.equals(f.fname);
	}
	
}
